package com.wis.controller;

import com.wis.entity.AdminEntity;
import com.wis.service.AdminService;
import com.wis.util.CommonResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/admin/admin")
public class AdminController {
    @Resource
    private AdminService adminService;

    @GetMapping("/login")
    public CommonResult selectAdmin(AdminEntity adminEntity) {
        return adminService.selectAdmin(adminEntity);
    }
}
